package audi.a4.control.gui;

import java.util.ArrayList;

import javax.swing.JLabel;
import javax.swing.JPanel;

import net.miginfocom.swing.MigLayout;

public class OverlayWidget extends JPanel {
	ArrayList<CanBusCodeWidget> widgets=null;
	/**
	 * long 
	 */
	private static final long serialVersionUID = 4420156627909359420L;
	private WindowedGraph graph = new WindowedGraph();
	public OverlayWidget() {
		setLayout(new MigLayout());
		add(new JLabel("Overlay"),"wrap");
		add(graph ,"wrap");
	}

	public void setWidgets(ArrayList<CanBusCodeWidget> cbcw) {
		widgets=cbcw;
		for(CanBusCodeWidget w: widgets) {
			w.setGraph(graph);
		}
	}
}
